﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;

namespace MyPoCApi.Models
{
    public class Order
    {
        public Customer Customer { get; set; }
        public Employee Employee { get; set; }
        [Key]
        public int OrderID { get; set; }

        [DataType(DataType.Date)]
        [DisplayFormat(DataFormatString = "{0:yyyy-MM-dd}", ApplyFormatInEditMode = true)]
        public DateTime OrderDate { get; set; }

        public ICollection<OrderDetail> OrderDetail { get; set; }





    }
}
